package exam;

import java.util.Scanner;

public class Wangyi_2 {
    static int n,m,result;
    static int[] number1,number2,number3;
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        n = scanner.nextInt();
        number1 = new int[n];
        number3 = new int[n];
        for(int i=0;i<n;i++){
            number1[i] = scanner.nextInt();
        }
         m = scanner.nextInt();
        number2 = new int[m];
        for(int i=0;i<m;i++){
            number2[i] = scanner.nextInt();
        }
        number3[0] = number1[0];
        for(int i=1;i<n;i++){
            number3[i] = number3[i-1] + number1[i];
        }
        f();
    }

    public static void f(){
        int l=0,r=n-1;
        for(int i=0;i<m;i++){
            while (true){
                result = (l+r)/2;
                if(number2[i] < number3[result]){
                    if(result==0 || number2[i] > number3[result-1]){
                        System.out.println(result+1);
                        l=0;r=n-1;
                        break;
                    }else {
                        r = result;
                    }
                }else if(number2[i] > number3[result]){
                    if(result == n-2){
                        System.out.println(result+2);
                        l=0;r=n-1;
                        break;
                    }else {
                        l = result;
                    }
                }else {
                    System.out.println(result+1);
                    l=0;r=n-1;
                    break;
                }
            }
        }
    }
}
